package factory.basefactory;

/**
 * @author wcj
 * @Date 2021/6/20 21:51
 * @Version 1.0
 */
public class OperationDivide implements Operation {
    @Override
    public Long operation(Long numberA, Long numberB) {
        if (numberB == 0L) {
            throw new IllegalArgumentException("除数不能为0！");
        }
        return numberA / numberB;
    }
}
